package com.hulk.dryad.web.api.vo;

import com.hulk.dryad.common.annotation.Sensitive;
import com.hulk.dryad.common.jackson.sensitive.SensitiveTypeEnum;
import com.hulk.dryad.web.api.vo.base.ReqVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

/**
 * @author  lqx
 * @date 2020/10/20.
 * 客户密码登录req
 */
@ApiModel(value = "客户密码登录")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class CustomerPwdLoginReqVO extends ReqVO {
    /**
     * 登录用户名
     */
    @NotBlank(message = "登录用户名不能为空;")
    @ApiModelProperty(value = "登录用户名", required = true)
    private String loginNo;

	/**
	 * 用户登录类型(社交类型)
	 */
	@NotBlank(message = "用户登录类型(社交类型)不能为空;")
	@ApiModelProperty(value = "用户登录类型(社交类型)不能为空", required = true)
	private String loginType;
    /**
     * 登陆密码
     */
    @NotBlank(message = "登陆密码不能为空;")
	@Length(min=6, message="登陆密码长度不能少于6位;")
    @ApiModelProperty(value = "登陆密码", required = true)
	@Sensitive(type = SensitiveTypeEnum.PASSWORD)
	@ToString.Exclude
    private String loginPwd;
   

}
